<?php

use think\Request;

$request = Request::instance();
// 获取URL访问的ROOT地址
$root = $request->root();
if ($root == '/index.php') {
  $assert = '';
} else {
  $assert = $root;
}

return array(
  'view_replace_str'       => [
    '__SITEURL__' => $root . '/public/index',
    // '__SITEURL__' => $assert,
    '__APIURL__' => $root,
  ],
);
